package com.apache.portal.weixin.core.manager.impl.parser;

import org.jdom.Element;
import org.jdom.JDOMException;

import com.apache.portal.weixin.core.manager.impl.WxRecvMsgBaseParser;
import com.apache.portal.weixin.entity.recv.WxRecvMsg;
import com.apache.portal.weixin.entity.recv.WxRecvVideoMsg;

/**
  * description: 视频消息转换代理接口实现
  * @author Hou DaYu 创建时间：下午05:36:34
 */
public class WxRecvVideoMsgParser extends WxRecvMsgBaseParser {

	@Override
	protected WxRecvVideoMsg parser(Element root, WxRecvMsg msg) throws JDOMException {
		String MediaId = getElementText(root, "MediaId");
		String ThumbMediaId = getElementText(root, "ThumbMediaId");

		return new WxRecvVideoMsg(msg, MediaId, ThumbMediaId);
	}

}
